package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SetDescriptorInformation {

    private int beginIndex;
    private int endIndex;
    private SetHeaderInformationList setHeaderInformationList;
    private SimpleValueSpecification itemNumber;
    private SetItemInformationList setItemInformationList;

    public SetDescriptorInformation(int beginIndex,
                                    SimpleValueSpecification itemNumber,
                                    SetItemInformationList setItemInformationList) {
        this.beginIndex = beginIndex;
        this.endIndex = setItemInformationList.getEndIndex();
        this.itemNumber = itemNumber;
        this.setItemInformationList = setItemInformationList;
    }

    public SetDescriptorInformation(SetHeaderInformationList setHeaderInformationList) {
        this.beginIndex = setItemInformationList.getBeginIndex();
        this.endIndex = setItemInformationList.getEndIndex();
        this.setHeaderInformationList = setHeaderInformationList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public SimpleValueSpecification getItemNumber() {
        return itemNumber;
    }

    public SetHeaderInformationList getSetHeaderInformationList() {
        return setHeaderInformationList;
    }

    public SetItemInformationList getSetItemInformationList() {
        return setItemInformationList;
    }

}
